<template>
	
	<div style="height: 600px;">
		
		<div style="height: 600px; width: 60%;">
			
			
			
			<h2>我的课程显示</h2>
			<table border="1px" style="width: 100%;">
				<tr>
					<th>教师ID</th>
					<th>教师姓名</th>
					<th>班级编号</th>
					<th>班级名称</th>
					<th>课程编号</th>
					<th>课程名称</th>
				</tr>
				<tr v-for="(x,idx) in myCourse">
					<td>{{x.user.uid}}</td>
					<td>{{x.user.uname}}</td>
					<td>{{x.clz.clzno}}</td>
					<td>{{x.clz.clzname}}</td>
					<td>{{x.course.cno}}</td>
					<td>{{x.course.cname}}</td>
				</tr>
			</table>
			
		</div>
		
	</div>
	
</template>

<script>
	
	export default{
		
		name:'Course',
		
		data(){
			return{
				myCourse:[],
				
				
				
			}
		},
		methods:{
			
		},
		mounted(){
			
			let that = this;
			
			let token = window.localStorage.getItem("token")
			
			console.log(token)
			
			console.log("-----")
			
			that.$get("/api/fore/stu/findMyCourse").then( (resp )=>{
				
				that.myCourse = resp.data.data;
				
				console.log(that.myCourse)
				
				
			})
		}
	}
	
</script>

<style>
</style>
